﻿<MContainer Fluid
            Class="text-center">
    <MRow Class="flex"
          Justify="JustifyTypes.SpaceBetween">
        <MCol Cols="12">
            <MButton OnClick="() => show = !show">
                toggle
            </MButton>
        </MCol>

        <MCol Cols="12" Class="mt-12">
            <MTooltip @bind-Value="show" Top Text="Programmatic tooltip">
                <ActivatorContent>
                    <MButton Icon @attributes="@context.Attrs">
                        <MIcon Color="grey lighten-1">mdi-cart</MIcon>
                    </MButton>
                </ActivatorContent>
            </MTooltip>
        </MCol>
    </MRow>
</MContainer>

@code
{
    private bool show;
}